﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManagerDetail.aspx.cs" Inherits="GovernmentOfficeProject.LevelViewUI.admin.UserManagerDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">


</script>

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
    <title></title>
    <link href="/css/dailog.css" rel="stylesheet" type="text/css" />
	<script src="/lib/jquery.js" type="text/javascript"></script>    
    <script src="/lib/Plugins/Common.js" type="text/javascript"></script> 
    <script src="/lib/Plugins/jquery.ifrmdailog.js" defer="defer" type="text/javascript"></script> 
	<script type="text/javascript">   
	    $(document).ready(function() {

	        $("#btnSelectRole").click(function() {
	            var url = "UserManagerRole.aspx?val=<%=Request.QueryString["umdval"] %>";
	            //window.open (url,'选择部门','height=350,width=150,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no, status=no');
	            openwindow(url,'选择用户组',300,350);
	        });
	           
            $("#btnSelectDept").click(function() {
	            var url = "UserManagerDept.aspx?val=<%=Request.QueryString["umdval"] %>";
	           // window.open (url,'选择部门','height=350,width=150,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no, status=no');
	            openwindow(url,'选择部门',300,350);
	        });	 
	    });
	    
	    function openwindow(url,name,iWidth,iHeight)
         {
          var url;                                 //转向网页的地址;
          var name;                           //网页名称，可为空;
          var iWidth;                          //弹出窗口的宽度;
          var iHeight;                        //弹出窗口的高度;
          var iTop = (window.screen.availHeight-30-iHeight)/2;       //获得窗口的垂直位置;
          var iLeft = (window.screen.availWidth-10-iWidth)/2;           //获得窗口的水平位置;
          window.open(url,name,'height='+iHeight+',,innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft+',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
         }
    </script>
    <script type="text/javascript">
        function toLoadDetail() {
            setTimeout("toLoadDetailGo()",2012)
        }
        function toLoadDetailGo() {
            $("#form1").submit();
        }
    </script>	
    
    <style type="text/css">
        body{font-size:13px;}
        .style4
        {
            height: 21px;
            width: 332px;
        }
        .style10
        {
        	width: 262px;
        }
        .style11
        {
            height: 30px;
        }
        .style12
        {
        	height: 21px;
            width: 106px;
            vertical-align:middle;
        }
        .style13
        {
        	height: 21px;
            width: 106px;
        }
        .style14
        {
        	height:21px;
        }
        .style15
        {
            height: 21px;
            width: 108px;
        }
        .style16
        {
            width: 262px;
        }
        #form1
        {
            height: 500px;
            width: 700px;
        }
        .style17
        {
            height: 12px;
            vertical-align: bottom;
        }
        #selectRoleBtn
        {
            height: 34px;
        }
        #selectDepBtn
        {
            height: 37px;
        }
        #btnSelectDept
        {
            height: 18px;
        }
        #btnSelectRole
        {
            height: 18px;
        }
    </style>
</head>

<body style="background-color:#ffffff">
    <form id="form1" runat="server" style="background-color: #CCCCCC">
        
        <div style="height: 18px; text-align:left; vertical-align: bottom;">
            &nbsp;<asp:Label ID="lblOperationState" runat="server" ForeColor="#FF6600" 
                Text="操作状态:"></asp:Label>
        </div>
        
        <table style="width:697px; height: 314px;">
            <tr>
                <td class="style14">
                <asp:Label ID="lblLoginName" runat="server" Text=" 登录名称:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtLoginName" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF" ></asp:TextBox>
                    <asp:Label ID="lblMsLoginName" runat="server" Text=" " ForeColor="#FF3300"></asp:Label>                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td valign="middle">
                <asp:Label ID="lblUserState" runat="server" Text="用户状态:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10">
                
                <div style="width: 225px">
                    <asp:RadioButtonList ID="rblUserState" runat="server" Font-Size="12px" 
                        Height="18px" RepeatDirection="Horizontal" Width="113px">
                        <asp:ListItem Value="1" Selected="True">启用</asp:ListItem>
                        <asp:ListItem Value="0">禁用</asp:ListItem>
                    </asp:RadioButtonList>
                    
                    <asp:Label ID="lblMsUserState" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblLoginPWD" runat="server" Text=" 登录密码:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtLoginPWD" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsLoginPWD" runat="server" Text=" " ForeColor="#FF3300"></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                <asp:Label ID="lblDepts" runat="server" Text="所属部门:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10" rowspan="2">
                
                <div style="width: 225px; vertical-align:middle; ">
                    <asp:ListBox ID="ListBoxDepts" runat="server" SelectionMode="Multiple" 
                        Width="139px" BackColor="#99CCFF">
                    </asp:ListBox>
                       <input id="btnSelectDept" runat="server"
                        type="button"  value="选择"  />
                       
                    <asp:Label ID="lblMsDepts" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblRealName" runat="server" Text="真实姓名:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtRealName" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsRealName" runat="server" Text=" " ForeColor="#FF3300"></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style15" valign="middle">
                <asp:Label ID="lblSex" runat="server" Text="性&amp;nbsp;&amp;nbsp;别:" 
                    Font-Bold="False" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                    <asp:RadioButtonList ID="rblSex" runat="server" Font-Size="12px" 
                        Height="16px" RepeatDirection="Horizontal" Width="99px">
                        <asp:ListItem Selected="True">男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:RadioButtonList>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style13">
                <asp:Label ID="lblRoles" runat="server" Text="用户组:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style16" rowspan="2" valign="top">
                
                <div style="width: 225px; text-align:left;">
                    <asp:ListBox ID="ListBoxRoles" runat="server" SelectionMode="Multiple" 
                        Width="139px" BackColor="#99CCFF">
                    </asp:ListBox>
                    <input id="btnSelectRole" runat="Server"
                        type="button" value="选择" />
                    <asp:Label ID="lblMsRoles" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblMobilePhone" runat="server" Text="移动电话:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtMobilePhone" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF" onkeyup="this.value=this.value.replace(/[^\d]+?/g,'')"></asp:TextBox>
                    <asp:Label ID="lblMsMobilePhone" runat="server" Text=" " ForeColor="#FF3300"></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblTelephony" runat="server" Text="固定电话:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtTelephony" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsTelephony" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                <asp:Label ID="lblLastDate" runat="server" Text="最后登录:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtLastLoginDate" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsLastLoginDate" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblEmail" runat="server" Text="电子邮件:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtEmail" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsEmail" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                    &nbsp;</td>
                <td class="style10">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblQQ" runat="server" Text="QQ号码:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtQQ" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsQQ" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                <asp:Label ID="lblCreateUser" runat="server" Text="由谁创建:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtCreateUser" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsCreateUser" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblWordAddress" runat="server" Text="工作地址:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtWorkAddress" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsWorkAddress" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                <asp:Label ID="lblCreateDate" runat="server" Text="创建时间:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtCreateDate" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsCreateDate" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblHomeAddress" runat="server" Text="家庭地址:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtHomeAddress" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsHomeAddress" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12">
                <asp:Label ID="lblUpdateUser" runat="server" Text="由谁修改:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtModifyUser" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsModifyUser" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td class="style14">
                <asp:Label ID="lblBackup" runat="server" Text="姓名备注:" 
                        style="font-weight: 700"></asp:Label>
                </td>
                <td class="style4">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtBackup" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsBackup" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
                <td class="style11">
                    &nbsp;</td>
                <td class="style12" valign="middle">
                <asp:Label ID="lblUpdateDate" runat="server" Text="修改时间:" style="font-weight: 700"></asp:Label>
                </td>
                <td class="style10">
                
                <div style="width: 225px">
                <asp:TextBox ID="txtModifyDate" runat="server" Font-Size="Small" Height="16px" 
                        Width="125px" BackColor="#99CCFF"></asp:TextBox>
                    <asp:Label ID="lblMsModifyDate" runat="server" Text=" "></asp:Label>
                    
                </div>
                </td>
            </tr>
            <tr>
                <td align="char" style="width:61px;" class="style17" colspan="5">
                    </td>
            </tr>
            </table>
        
        <div style="height: 26px; text-align:left; ">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnGoBack" runat="server" Font-Bold="True" Height="23px" 
                Text="返   回" Width="81px" onclick="btnGoBack_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnSave" name="btnSave" runat="server" Font-Bold="True" Height="23px" 
                Text="保   存" Width="81px" onclick="btnSave_Click" />
        </div>
        
   
    
    <!-- 用户组窗口 -->
	 </form>
</body>
</html>
